<?php

return CMap::mergeArray(
                require(LIBRARIES_FOLDER . '/config.php'), array(
            // Put front-end settings there
            // (for example, url rules).
            'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
            'theme' => 'default',
            'defaultController' => 'home',
            'modules' => array(
                'gii' => array(
                    'class' => 'system.gii.GiiModule',
                    'password' => 'admin',
                    // If removed, Gii defaults to localhost only. Edit carefully to taste.
                    'ipFilters' => array('127.0.0.1', '::1'),
                ),
            ),
            'import' => array(
                'application.extensions.KEmail.KEmail',
                'application.extensions.Captcha.*',
            ),
            'components' => array(
                'user' => array(                    
                    'loginUrl' => SITE_URL.'/membercenter/login',                    
                ),
                
                //Error Action when having Errors
                'errorHandler' => array(
                    'errorAction' => 'site/error',
                ),                
                'urlManager' => array(
                    'urlFormat' => 'path',
                    'showScriptName' => false,
                    'urlSuffix' => '.html',                    
                    'rules' => array(                        
                        '<controller:\w+>/<action:\w+>/<id:\d+>-<alias:.*?>' => '<controller>/<action>',
                        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
                        '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
                    ),
                ),
            ),
                )
);